package com.dgut.event;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationEvent;

public class MyEvent extends ApplicationEvent {
    private static final Logger logger = LoggerFactory.getLogger(MyEvent.class);
    String message;

    public MyEvent(String message){
        super(message);
        this.message=message;
        logger.info("添加事件message: {}",message);
    }

    public String getMessage() {
        return message;
    }
}
